type IFormType = 'text' | 'password' | 'select' | 'datepicker'

export interface IFormItem {
  field: string
  type: IFormType
  label: string
  value?: string
  rules?: any[]
  placeholder?: string
  // 针对select
  options?: any[]
  // 针对其他补充
  otherOptions?: any
}

export interface IFormLayout {
  row: number
  col: number
}

export interface IColLayout {
  xl?: number
  lg?: number
  md?: number
  sm?: number
  xs?: number
}

export interface IForm {
  formItems?: IFormItem[]
  layout?: IFormLayout
  labelWidth?: string
  itemStyle?: any
  colLayout?: IColLayout
}

export interface IFormData {
  id: string
  name: string
  password: string
  sport: string
  createTime: string
}
